<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>打印9*9乘法表</title>
</head>

<body>
    <script>
        var str = '';
        for (var i = 1; i < 10; i++) {
            for (var j = 1; j < i + 1; j++) {
                str += i + "*" + j + "=" + i * j + '\t';
            }
            str += "\n";
        }
        console.log(str);
    </script>
</body>

</html>